Skip to content

[WIP] Linearization without conversion #147433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

newling
Copy link
Contributor

@newling newling commented Jul 8, 2025

This work in progress PR combines

  1. Use rewrite patterns: [mlir][Vector] Turn Vector Linearization from a conversion to an IR rewrite? #146030 (comment)
  2. Gradually flatten innermost dimension: https://discourse.llvm.org/t/rfc-mlir-vector-modify-remove-bit-width-specific-flattening-linearization/86876/8

It is a large change.. there are some small parts I can easily disentangle from the bulk of this PR and post as initial PRs, but then it will get a bit trickier, because the change from type conversion to rewrite patterns cannot be done gradually. It could be more gradually than this PR though for sure, by focusing just on 1 above.

Anyway, posting this to hopefully get some initial high-level thoughts

Copy link

github-actions bot commented Jul 8, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

@newling newling force-pushed the linearize_gradual branch from 56bae89 to a1e180f Compare July 8, 2025 21:23
@newling
Copy link
Contributor Author

newling commented Jul 8, 2025

Hi @Hardcode84 @dcaballe @banach-space @nbpatel -- this draft PR may be of interest to you as it related to #146030 (comment) and #145115 (comment). Please let me know if you have any initial thoughts, and possibly next steps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant